import request from '@/utils/request'

// 分页查询勘界资料列表
export function getKanJieList(params) {
  return request({
    method: 'get',
    url: '/land/kjData/query',
    params
  })
}
//详情
export function getKanJieDetail(pkid) {
  return request({
    method: 'get',
    url: `/land/kjData/queryById?pkid=${pkid}`
  })
}

// 编辑
export function kanJieSave(data) {
  return request({
    method: 'post',
    url: '/land/kjData/update',
    data
  })
}
//根据shp文件id解析为 geojson

export function shpResolveById(id) {
  console.log(id)
  return request({
    method: 'get',
    url: '/map/map/parse/shp/fileId',
    params: { fileId: id }
  })
}
//上传shp文件解析为 geojson
export function shpResolveGeojson(params) {
  return request({
    method: 'post',
    url: '/map/map/upload/getGeoJson',
    data: params
  })
}
